home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 21
/
Aminet 21 (1997)(GTI - Schatztruhe)[!][Oct 1997].iso
/
Aminet
/
gfx
/
x11
/
xmountains.lha
/
src
/
global.c
< prev
next >
Wrap
C/C++ Source or Header
|
2003-06-09
|
2KB
|
69 lines
#include "crinkle.h"
#include "paint.h"
Fold *top;
int levels = 10;
int stop = 2;
int smooth = 1;
int cross = TRUE;
int slope = 1;
int snooze_time = 10;
int n_col=DEF_COL;
int band_size=BAND_SIZE;
int request_clear = FALSE;
#ifdef USE_E_EVENTS
int e_events = FALSE;
#else
int e_events = FALSE;
#endif
float fdim = 0.65;
float mix =0.0;
float midmix=0.0;
Height start; /* starting value for the surface */
Height mean=0.0; /* mean value of surface */
Height varience; /* rough estimate of the height of the range */
Height shift=0.5; /* offset from calcalt to artist coordinates */
Height delta_shadow; /* offset of shadow at each step */
float stretch=0.6; /* vertical stretch */
float contour = 0.3;
float ambient = 0.3; /* level of ambient light */
float contrast = 1.0; /* contrast,
* increases or decreases effect of cosine rule */
float vfract = 0.6; /* relative strength of vertical light relative
* to the main light source
*/
float altitude = 2.5;
float distance = 4.0;
double phi=(40.0 * PI)/180.0; /* angle of the light (vertical plane)*/
double alpha=0.0; /* angle of the light (horizontal plane)
* must have -pi/4 < alpha < pi/4
*/
double shadow_slip;
double shadow_register=0.0;
double cos_phi;
double sin_phi;
double tan_phi;
double x_fact;
double y_fact;
Height sealevel = 0.0;
Height forceheight = -1.0;
int width; /* width of the landscape, (function of levels) */
int seed=0; /* zero means read the clock */
/*
* viewport parameters
*/
int height; /* height of the screen */
double vangle; /* view angle 0 == horizontal
*increase to look down
*/
double tan_vangle;
float vscale; /* rescale physical height by this amount. */
float viewpos; /* position of viewpoint */
float viewheight; /* height of viewpoint */
float focal; /* focal length, calc to preserve aspect ratio */
Height *shadow; /* height of the shadows */
Height *a_strip, *b_strip; /* the two most recent strips */